package com.zjq.service;

import com.zjq.pojo.Cart;
import com.zjq.pojo.Comments;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookStoreService {
    int addComment(Comments comments);

    List<Comments> queryCommentsByBookId(int bookId);

    List<Comments> queryAllComment();

    int deleteCommentById(int commentId,int pId);

    List<Cart> queryCartByUserId(int id);

    int addCart(Cart cart);

    int updateCartByid(int cartId,int counts);

    int deletCartById(int id);
}
